package ch.elektroplan.cmueller.logikModulGenerator.business.elements;

public class MemoryVariable {
	
	private int TYPE = 5003;
	private int number = 1;
	private String initialisationVariable = 0+"";
	private int remanent = 0;
	private String comment = "";
	
	public MemoryVariable(int number){
		
		this. number = number;
		
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public String getInitialisationVariable() {
		return initialisationVariable;
	}

	public void setInitialisationVariable(String initialisationVariable) {
		this.initialisationVariable = initialisationVariable;
	}

	public int getRemanent() {
		return remanent;
	}

	public void setRemanent(int remanent) {
		this.remanent = remanent;
	}

	public String getmemorystring() {

		String output = TYPE + "|" + number + "|" + initialisationVariable + "|"
				+ remanent;

		return output;

	}
	
	

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getmemoryComment() {
		return "#" + this.comment;

	}
}
